import request from '@/utils/request'

// 查询回款主表列表
export function listHkmain(query) {
  return request({
    url: '/business/hkmain/list',
    method: 'get',
    params: query
  })
}

// 查询回款主表详细
export function getHkmain(id) {
  return request({
    url: '/business/hkmain/' + id,
    method: 'get'
  })
}

// 新增回款主表
export function addHkmain(data) {
  return request({
    url: '/business/hkmain',
    method: 'post',
    data: data
  })
}

// 修改回款主表
export function updateHkmain(data) {
  return request({
    url: '/business/hkmain',
    method: 'put',
    data: data
  })
}

// 删除回款主表
export function delHkmain(id) {
  return request({
    url: '/business/hkmain/' + id,
    method: 'delete'
  })
}
